PROMPT 2: BUILD THE SCRIPT (ONLY AFTER YOU APPROVE THE DESIGN)
Use in the same chat.

Approved. Now write the script that builds exactly this approved design.

Write an Adobe InDesign ExtendScript (.jsx) file for InDesign [e.g. 2026, version 22] on [Mac or Windows].

Rules:
1. ES3 syntax only. No let, const, arrow functions or template strings.
2. Put a settings block at the top for sizes, colours, fonts and positions.
3. Read all text from a file called page.json in the same folder as the script. Read photograph file names from the same file and place them from an images folder next to the script. If a photograph is missing, draw a grey frame and warn me.
4. Create colour swatches, paragraph styles and character styles in code.
5. Check that each font is installed. If not, use Arial and tell me.
6. Warn me if text overflows.
7. Use try/catch and show a clear alert on any error.
8. Save the .indd, a backup copy with date and time, a print PDF with bleed and crop marks, and a screen PDF into an Output folder next to the script.

Give me:
1. The complete .jsx in one code block, with the file name above it.
2. The complete page.json in another code block, with the file name above it.
3. Five lines on how to run it.
